 #define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
reverse_string(char string[])
{
	char temp = string[0];
	int len = strlen(string);
	string[0] = string[len - 1];
	string[len - 1] = '\0';
	if (len - 2 >= 2)
		 reverse_string(string + 1);
	string[len - 1] = temp;

}
int main()
{
	char string[15];
	scanf("%s", &string);
	reverse_string(string);
	printf("%s\n", string);
	return 0;
}